﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Web.UI.HtmlControls;

namespace RssReader.Core.UI
{
	public class BasePage : Page
	{
		#region Private Properties

		#endregion

		#region Public Properties

		#endregion

		#region Constructors

		#endregion

		#region Private Methods

		#endregion

		#region Public Methods
		public void ThrowError(string errorMessage)
		{
			HtmlGenericControl control = this.FindControl("ErrorMessage") as HtmlGenericControl;
			if (control != null)
			{
				control.InnerHtml = errorMessage;
			}
			else
			{
				Response.Write(errorMessage);
			}
		}
		#endregion
	}
}
